﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001221 RID: 4641
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartPartialChallengeScRsp : IMessage<StartPartialChallengeScRsp>, IMessage, IEquatable<StartPartialChallengeScRsp>, IDeepCloneable<StartPartialChallengeScRsp>, IBufferMessage
	{
		// Token: 0x17003ACF RID: 15055
		// (get) Token: 0x0600D00C RID: 53260 RVA: 0x002305CF File Offset: 0x0022E7CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartPartialChallengeScRsp> Parser
		{
			get
			{
				return StartPartialChallengeScRsp._parser;
			}
		}

		// Token: 0x17003AD0 RID: 15056
		// (get) Token: 0x0600D00D RID: 53261 RVA: 0x002305D6 File Offset: 0x0022E7D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartPartialChallengeScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003AD1 RID: 15057
		// (get) Token: 0x0600D00E RID: 53262 RVA: 0x002305E8 File Offset: 0x0022E7E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartPartialChallengeScRsp.Descriptor;
			}
		}

		// Token: 0x0600D00F RID: 53263 RVA: 0x002305EF File Offset: 0x0022E7EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartPartialChallengeScRsp()
		{
		}

		// Token: 0x0600D010 RID: 53264 RVA: 0x002305F8 File Offset: 0x0022E7F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartPartialChallengeScRsp(StartPartialChallengeScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.curChallenge_ = ((other.curChallenge_ != null) ? other.curChallenge_.Clone() : null);
			this.lineup_ = ((other.lineup_ != null) ? other.lineup_.Clone() : null);
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D011 RID: 53265 RVA: 0x0023067C File Offset: 0x0022E87C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartPartialChallengeScRsp Clone()
		{
			return new StartPartialChallengeScRsp(this);
		}

		// Token: 0x17003AD2 RID: 15058
		// (get) Token: 0x0600D012 RID: 53266 RVA: 0x00230684 File Offset: 0x0022E884
		// (set) Token: 0x0600D013 RID: 53267 RVA: 0x0023068C File Offset: 0x0022E88C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003AD3 RID: 15059
		// (get) Token: 0x0600D014 RID: 53268 RVA: 0x00230695 File Offset: 0x0022E895
		// (set) Token: 0x0600D015 RID: 53269 RVA: 0x0023069D File Offset: 0x0022E89D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CurChallenge CurChallenge
		{
			get
			{
				return this.curChallenge_;
			}
			set
			{
				this.curChallenge_ = value;
			}
		}

		// Token: 0x17003AD4 RID: 15060
		// (get) Token: 0x0600D016 RID: 53270 RVA: 0x002306A6 File Offset: 0x0022E8A6
		// (set) Token: 0x0600D017 RID: 53271 RVA: 0x002306AE File Offset: 0x0022E8AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupInfo Lineup
		{
			get
			{
				return this.lineup_;
			}
			set
			{
				this.lineup_ = value;
			}
		}

		// Token: 0x17003AD5 RID: 15061
		// (get) Token: 0x0600D018 RID: 53272 RVA: 0x002306B7 File Offset: 0x0022E8B7
		// (set) Token: 0x0600D019 RID: 53273 RVA: 0x002306BF File Offset: 0x0022E8BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x0600D01A RID: 53274 RVA: 0x002306C8 File Offset: 0x0022E8C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartPartialChallengeScRsp);
		}

		// Token: 0x0600D01B RID: 53275 RVA: 0x002306D8 File Offset: 0x0022E8D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartPartialChallengeScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.CurChallenge, other.CurChallenge) && object.Equals(this.Lineup, other.Lineup) && object.Equals(this.Scene, other.Scene) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D01C RID: 53276 RVA: 0x00230750 File Offset: 0x0022E950
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.curChallenge_ != null)
			{
				num ^= this.CurChallenge.GetHashCode();
			}
			if (this.lineup_ != null)
			{
				num ^= this.Lineup.GetHashCode();
			}
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D01D RID: 53277 RVA: 0x002307D1 File Offset: 0x0022E9D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D01E RID: 53278 RVA: 0x002307D9 File Offset: 0x0022E9D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D01F RID: 53279 RVA: 0x002307E4 File Offset: 0x0022E9E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this.lineup_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.Lineup);
			}
			if (this.scene_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.Scene);
			}
			if (this.curChallenge_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.CurChallenge);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D020 RID: 53280 RVA: 0x00230878 File Offset: 0x0022EA78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.curChallenge_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CurChallenge);
			}
			if (this.lineup_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Lineup);
			}
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D021 RID: 53281 RVA: 0x00230900 File Offset: 0x0022EB00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartPartialChallengeScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.curChallenge_ != null)
			{
				if (this.curChallenge_ == null)
				{
					this.CurChallenge = new CurChallenge();
				}
				this.CurChallenge.MergeFrom(other.CurChallenge);
			}
			if (other.lineup_ != null)
			{
				if (this.lineup_ == null)
				{
					this.Lineup = new LineupInfo();
				}
				this.Lineup.MergeFrom(other.Lineup);
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D022 RID: 53282 RVA: 0x002309C0 File Offset: 0x0022EBC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D023 RID: 53283 RVA: 0x002309CC File Offset: 0x0022EBCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 98U)
				{
					if (num == 80U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 98U)
					{
						if (this.lineup_ == null)
						{
							this.Lineup = new LineupInfo();
						}
						input.ReadMessage(this.Lineup);
						continue;
					}
				}
				else
				{
					if (num == 114U)
					{
						if (this.scene_ == null)
						{
							this.Scene = new SceneInfo();
						}
						input.ReadMessage(this.Scene);
						continue;
					}
					if (num == 122U)
					{
						if (this.curChallenge_ == null)
						{
							this.CurChallenge = new CurChallenge();
						}
						input.ReadMessage(this.CurChallenge);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005362 RID: 21346
		private static readonly MessageParser<StartPartialChallengeScRsp> _parser = new MessageParser<StartPartialChallengeScRsp>(() => new StartPartialChallengeScRsp());

		// Token: 0x04005363 RID: 21347
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005364 RID: 21348
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04005365 RID: 21349
		private uint retcode_;

		// Token: 0x04005366 RID: 21350
		public const int CurChallengeFieldNumber = 15;

		// Token: 0x04005367 RID: 21351
		private CurChallenge curChallenge_;

		// Token: 0x04005368 RID: 21352
		public const int LineupFieldNumber = 12;

		// Token: 0x04005369 RID: 21353
		private LineupInfo lineup_;

		// Token: 0x0400536A RID: 21354
		public const int SceneFieldNumber = 14;

		// Token: 0x0400536B RID: 21355
		private SceneInfo scene_;
	}
}
